package com.it.web;

import com.it.entity.worker.SystemMenu;
import com.it.service.SystemMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import utils.R;

/**
 * <p>
 * 系统菜单表（农业保险系统） 前端控制器
 * </p>
 *
 * @author sunwz
 * @since 2025年09月15日
 */
@RestController
@RequestMapping("/systemMenu")
public class SystemMenuController {

    @Autowired
    private SystemMenuService systemMenuService;

    /*
    * 获取权限
    * */
    @GetMapping("/getMenu/{id}")
    public R getMenu(@PathVariable String id) {
        return systemMenuService.getMenu(id);
    }
}
